<?php

require_once('php/register.php');
include('txt/registre.html');
include_once('php/logger.php');


$error = FALSE;
if(isset($_POST['login']) AND $_POST['login'] != NULL AND $_POST['login'] != 'Login')
  {
    echo register_member();
    $error = FALSE;
  }

if(isset($_POST['login']) AND $_POST['login'] == NULL AND $_POST['login'] == 'login' AND !is_logged())
  {
    echo '<p id="error" style="color:red;">Veuillez remplir correctement le formulaire</p>';
    $error = TRUE;
  }
echo '<div class="ligne></div>"';
if(!isset($_POST['login']) AND !is_logged() OR (isset($_POST) AND $error == TRUE) AND !is_logged())
{
?>
      <!-- Form -->

      <form method="post" action="index.php?page=inscription.php">

	  <select name="login" class="top_box_registre left">
	    <?php login_form_select($webacademie); ?>
	  </select>

	  <input name="send" type="image" value="GO" class="left go" src="img/goform.jpg" alt="go" />
	</form>

<?php
}
?>
